import request from '@/utils/request'

export default {
  add: async (opts) => await request.post('/student', opts),
  getList: async (cond) => await request.get('/student/list', { params: cond }),
  getDetail: async (id) => await request.get('/student?id=' + id),
  put: async (id, opts) => await request.put('/student?id=' + id, opts),
  del: async (id) => await request.delete('/student', { params: { idList: id } }),
}